using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Web.UI.WebControls;
using Sedna.Core.Controls.Enum;

namespace Sedna.Core.Controller
{
    /// <summary>
    /// This interface provide methods to manage file upload control (file saving). Actions can't have access to control as on
    /// this comman is created.
    /// </summary>
    public interface IFileUploadCommand
    {
        String SaveAs
        {
            get;
        }
        
        String Directory
        {
            get;
        }

        FileUploadMode FileUploadMode
        {
            get;
        }

        bool CreateDirectory
        {
            get;
        }

        FileInfo Execute(FileUpload control);
    }
}
